Fast 3D-2D image registration method with application to continuously guided endoscopy

ABSTRACT

A novel framework for fast and continuous registration between two imaging modalities is disclosed. The approach makes it possible to completely determine the rigid transformation between multiple sources at real-time or near real-time frame-rates in order to localize the cameras and register the two sources. A disclosed example includes computing or capturing a set of reference images within a known environment, complete with corresponding depth maps and image gradients. The collection of these images and depth maps constitutes the reference source. The second source is a real-time or near-real time source which may include a live video feed. Given one frame from this video feed, and starting from an initial guess of viewpoint, the real-time video frame is warped to the nearest viewing site of the reference source. An image difference is computed between the warped video frame and the reference image. The viewpoint is updated via a Gauss-Newton parameter update and certain of the steps are repeated for each frame until the viewpoint converges or the next video frame becomes available. The final viewpoint gives an estimate of the relative rotation and translation between the camera at that particular video frame and the reference source. The invention has far-reaching applications, particularly in the field of assisted endoscopy, including bronchoscopy and colonoscopy. Other applications include aerial and ground-based navigation.

REFERENCE TO RELATED APPLICATION

This application claims priority to U.S. Provisional Patent Application Ser. No. 60/683,588, filed May 23, 2005, the entire content of which is incorporated herein by reference.

STATEMENT OF GOVERNMENT SPONSORSHIP

This invention was made with government support under Grant No. R01 CA074325, awarded by the National Institutes of Health. The Government has certain rights in the invention.

FIELD OF THE INVENTION

This invention relates generally to image correlation and, in particular, to a fast image registration method applicable to guided endoscopy and other fields.

BACKGROUND OF THE INVENTION

Registration and alignment of images taken by cameras at different spatial locations and orientations within the same environment is a task which is vital to many applications in computer vision and medical imaging. For example, registration between images taken by a mobile camera and those from a fixed surveillance camera can assist in robot navigation. Other applications include the ability to construct image mosaics and panoramas, high dynamic range images, or super-resolution images, or the fusion of information between the two sources.

However, because the structure of a scene is inherently lost by the 2D imaging of a 3D scene, only partial registration information can typically be recovered. In many applications, depth maps can be generated or estimated to accompany the images in order to reintroduce the structure to the registration problem.

Most currently available 2D alignment algorithms use a gradient descent approach which relies on three things: a parameterization of the spatial relationship between two images (e.g., the 2D rotation and translation between two 2D images), the ability to visualize these images under any value of the parameters (e.g., viewing a 2D reference image rotated by 30 degrees), and a cost function with associated image gradient information which allows an estimate of the parameter updates to be calculated. Among the most straightforward and earliest of these algorithms is the Lucas-Kanade algorithm, which casts image alignment as a Gauss-Newton minimization problem [5]. A subsequent refinement to this algorithm includes the inverse compositional alignment algorithm which greatly speeds the computation of the parameter update by recasting the problem, allowing all gradient and Hessian information to be calculated one time instead of every iteration [6]. Several other improvements have centered around the choice of parameters and the corresponding image warps these parameterizations induce. For example, images obtained from two identical cameras observing the same scene from a different location can be approximately related by an affine transformation or an 8-parameter homography [7].

The main problem with these types of parameterizations is that they do not truly capture the physically relevant parameters of the system, and, in the case of the homography, can lead to overfitting of the image. A more recent choice of parameters attempts to match two images obtained from a camera that can have arbitrary 3D rotations around its focal point [8]. This algorithm succeeds in extracting the physically relevant parameters (rotation angles about the focal point). However, while it is able to handle small translations, it cannot handle general translation and treats it as a source of error.

Little has been done to tackle the problem of registration of two images generated by cameras related by a general rigid transformation (i.e., 3D rotation and translation). The main reason for this is that the accurate visualization of a reference image as seen from a different camera location ideally requires that the depth map associated with that image be known—something which is not generally true. In certain situations, such as a robot operating in a known man-made environment, or during bronchoscopy where 3D scans are typically performed before the procedure, this information is known. Indeed, even in situations where the depth map is unknown, it can often be estimated from the images themselves.

An example of this is the aforementioned shape-from-shading problem in bronchoscopy guidance [9]. Current practice requires a physician to guide a bronchoscope from the trachea to some predetermined location in the airway tree with little more than a 3D mental image of the airway structure, which must be constructed based on the physician's interpretation of a set of computed tomography (CT) films. This complex task can often result in the physician getting lost within the airway during navigation [1]. Such navigation errors result in missed diagnoses, or cause undue stress to the patient as the physician may take multiple biopsies at incorrect locations, or the physician may need to spend extra time returning to known locations in order to reorient themselves.

In order to alleviate this problem and increase the success rate of bronchoscopic biopsy, thereby improving patient care, some method of locating the camera within the airway tree must be employed. Fluoroscopy can provide intraoperative views which can help determine the location of the endoscope. However, as the images created are 2D projections of the 3D airways, they can only give limited information of the endoscope position. Additionally, fluoroscopy is not always available and comes with the added cost of an increased radiation dose to the patient.

A few techniques also exist that determine the bronchoscope's location by attempting to match the bronchoscope's video to the preoperative CT data. One method uses shape-from-shading, as in [2], to estimate 3D surfaces from the bronchoscope images in order to do 3D-to-3D alignment of the CT airway surface. This method requires many assumptions to be made regarding the lighting model and the airway surface properties and results in large surface errors when these assumptions are violated. A second method of doing this is by iteratively rendering virtual images from the CT data and attempting to match these to the real bronchoscopic video using mutual information [3] or image difference [4].

While these methods can register the video to the CT with varying degrees of success, all operate very slowly and only involve single-frame registration—none of them are fast enough to provide continuous registration between the real video and the CT volume. They rely on optimization methods which make no use of either the gradient information nor the known depth of the CT-derived images, and thus require very computationally intensive searches of a parameter space.

SUMMARY OF THE INVENTION

This invention resides in a novel framework for fast and continuous registration between two imaging modalities. A method of registering an image according to the invention comprises the steps of providing a set of one or more reference images with depth maps, and registering the image to at least one of the reference images of the set using the depth map for that reference image. The image and the reference set may both be real, virtual, or one real with the other virtual. The set of reference images may endoscopic, derived from a bronchoscope, colonoscope, laparoscope or other instrument. The registration preferably occurs in real-time or near real-time, and one or more of the images in the set of reference images can be updated before, during, or after registration.

According to a robust implementation, the set of reference images represents viewpoints with depth maps and image gradients, and the image to be registered is derived from a video feed having a plurality of consecutive frames. The method includes the steps of:

a) warping a frame of the video to the nearest viewpoint of the reference source;

b) computing an image difference between the warped video frame and the reference image;

c) updating the viewpoint using a Gauss-Newton parameter update; and

d) repeating steps a) through c) for each frame until the viewpoint converges or the next video frame becomes available.

The invention makes it possible to completely determine the rigid transformation between multiple sources at real-time or near real-time frame-rates in order to register the two sources. A disclosed embodiment involving guided bronchoscopy includes the following steps:

-   -   1. In the off-line phase, a set of reference images is computed         or captured within a known environment, complete with         corresponding depth maps and image gradients. The collection of         these images and depth maps constitutes the reference source.     -   2. The second source is a real-time source from a live video         feed. Given one frame from this video feed, and starting from an         initial guess of viewpoint, the real-time video frame is warped         to the nearest viewing site of the reference source.     -   3. An image difference is computed between the warped video         frame and the reference image.     -   4. The viewpoint is updated via a Gauss-Newton parameter update.     -   5. Steps 2-4 are repeated for each frame until the viewpoint         converges or the next video frame becomes available. The final         viewpoint gives an estimate of the relative rotation and         translation between the camera at that particular video frame         and the reference source.

The invention has far-reaching applications, particularly in the field of assisted endoscopy, including bronchoscopy and colonoscopy. Other applications include aerial and ground-based navigation.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a block diagram of registration algorithm for guided bronchoscopy;

FIGS. 2A-2F show source images and results for virtual-to-real registration; specifically, FIG. 2A shows a real video frame, FIG. 2B shows a warped real image at initial viewpoint, FIG. 2C shows edges from final reference image overlaid, FIG. 2D shows a reference virtual image corresponding to final registration, FIG. 2E shows a warped real image at final viewpoint, and FIG. 2F shows edges of corresponding virtual image overlaid; and

FIGS. 3A-3C show source images and sample results for virtual-to-virtual registration; specifically, FIG. 3A shows a real image, FIG. 3B shows a reference image, and FIG. 3C shows a warped real image.

DETAILED DESCRIPTION OF THE INVENTION

Broadly, this invention is a 2D image alignment algorithm which is augmented to three dimensions by introducing the depth maps of the images. The method provides an ideal way to extend the existing matching framework to handle general 3D camera motion, allowing one to directly solve for the extrinsic parameters of the camera and localize it within its environment.

For the purpose of explaining the method in a very concrete fashion, discussion shall focus on a situation similar to that used in guided bronchoscopy. In a typical bronchoscopic procedure, a CT scan is initially performed and can subsequently be processed to extract the airway tree surfaces. The interior of the hollow airway tree constitutes the known environment. During bronchoscopy, the bronchoscope is inserted into the airways and a camera mounted on the tip transmits in real-time a sequence of real bronchoscopic (RB) video images. Assuming that the calibration parameters of the endoscope are known, virtual bronchoscopic (VB) images (endoluminal renderings) can be rendered at arbitrary viewpoints within the airway tree. It is also clear that the depths corresponding to each pixel of the VB image can be immediately calculated and form a virtual depth map (VDM).

The problem is that we have a fixed real-time RB image from an unknown location within the interior of an airway, but we also have a known VB source with known location and 3D information that enables us to create manifestations of the same hollow airway structure from arbitrary viewpoint. Given the above setup, the goal is to locate the source of the RB image by attempting to find the best match between that fixed RB image and any possible VB endoluminal rendering. A fairly straightforward approach to accomplish this is by employing a Gauss-Newton gradient descent algorithm that attempts to minimize a difference measure between the RB image and the VB image with respect to the viewing parameters (i.e., viewpoint) of the virtual image. The method for doing this is similar to the Lucas-Kanade image alignment algorithm [5].

The objective function used in [5, 6] is the sum squared difference (SSD) between the pixel intensities of the two images, although weighted SSD is equally viable, and weighted or unweighted normalized cross-correlation (CC) can be used if some additional weak assumptions are made. Using the SSD, the objective function can thus be written as

$\begin{matrix} {E = {\sum\limits_{u,v}\left\lbrack {{I_{v}\left( {u,{v;{p + {\Delta\; p}}}} \right)} - {I_{r}\left( {u,v} \right)}} \right\rbrack^{2}}} & (1) \end{matrix}$ where p is the vector of viewing parameters, I_(v) (u, v; p+Δp) is the virtual VB image rendered from the viewpoint p+Δp, u and v are the row and column indices, and I_(r) is the real RB image. Following the procedure of [5], it is shown that that the Gauss-Newton parameter update Δp can be found as

$\begin{matrix} {{\Delta\; p} = {H^{- 1}{\sum\limits_{u,v}{\left\lbrack \frac{\partial I}{\partial p} \right\rbrack\left\lbrack {{I_{v}\left( {u,{v;p}} \right)} - {I_{r}\left( {u,v} \right)}} \right\rbrack}}}} & (2) \end{matrix}$ where the Hessian H is approximated per Gauss-Newton as

$\begin{matrix} {H = {\sum\limits_{u,v}{\left\lbrack \frac{\partial I_{v}}{\partial p} \right\rbrack_{u,{v;p}}^{T}\left\lbrack \frac{\partial I_{v}}{\partial p} \right\rbrack}_{u,{v;p}}}} & (3) \end{matrix}$ where

$\left\lbrack \frac{\partial I_{v}}{\partial p} \right\rbrack_{({u,{v;p}})}$ is a vector that gives the change in the intensity of a pixel (u, v) in a VB image Iv rendered at viewpoint p with respect to each of the components of the parameter vector Δp.

$\left\lbrack \frac{\partial I_{v}}{\partial p} \right\rbrack_{p}$ can also be interpreted as a vector of steepest descent images, where each component of the vector is actually an image that describes the variation of the image intensities with respect a component of the parameter vector. Because the steepest descent images

$\left\lbrack \frac{\partial I_{u}}{\partial p} \right\rbrack_{p}$ change at every viewpoint p, they, and the Hessian must be recomputed every iteration, leading to a very computationally costly algorithm.

To speed up the iteration, the inverse compositional algorithm was proposed [6]. Under this strategy, instead of moving the virtual viewpoint towards the real viewpoint using the parameter update, we instead move the real viewpoint toward the virtual viewpoint using the inverse of the parameter update. Since the computer obviously has no control over the location of the bronchoscope tip, this may seem to be an unfeasible strategy. However, using a depth-based warping, the RB image can be warped to simulate its appearance from other viewpoints. This strategy results in comparing a warped version of the real image to a stationary virtual image. Under this formulation, the objective function we seek to minimize is:

$\begin{matrix} {E = {\sum\limits_{u,v}\left\lbrack {{I_{v}\left( {u,{v;{\Delta\; p}}} \right)} - {I_{r}\left( {W\left( {u,v,{Z_{r};p}} \right)} \right)}} \right\rbrack^{2}}} & (4) \end{matrix}$ The warping function W (•)warps the image coordinates of the RB image I_(r) and hence warps the image itself. It is important also to note that the warp in this case is dependent on the depth map of the real image Z_(r). Solving for the Gauss-Newton parameter update associated with 4 yields

$\begin{matrix} {{\Delta\; p} = {H^{- 1}\text{|}_{p = \overset{->}{0}}{\sum\limits_{u,v}{\left\lbrack \frac{\partial I}{\partial p} \right\rbrack_{u,{v;\overset{->}{0}}}\left\lbrack {{I_{r}\left( {W\left( {u,v,{Z_{r};p}} \right)} \right)} - {I_{v}\left( {u,v} \right)}} \right\rbrack}}}} & (5) \end{matrix}$ While this may seem to add unnecessary complexity and error to the problem, it actually serves to greatly speed the iteration and has the additional side benefit of eliminating the need to render arbitrary viewpoints on the fly if you instead have a collection of pre-rendered (or pre-captured) images and corresponding depth maps. The reason for this significant increase in speed is that the VB image and VB image gradients are always evaluated at p=0, the reference viewing site, and as such allows all of the following operations to be pre-computed before iteration begins:

1. The known environment is sampled as a set of viewing sites.

2. Virtual images I_(v) are pre-rendered at each viewing site.

3. Virtual depth maps Z_(v) are computed at each site.

4. Steepest descent images

$\frac{\partial I_{v}}{\partial p}$ are computed with respect to each of the viewing parameters in vector p.

5. The inverse Hessian H⁻¹ is Gauss-Newton estimated from the steepest descent images

$\frac{\partial I_{v}}{\partial p}$ via equation (14). The iterative portion of the algorithm may then be carried out in the following steps:

1. Warp the real image from pose p to the nearest reference site.

2. Compute the error image: I_(r)(W(u,v, Z_(r);p))−I_(v)(u, v;{right arrow over (0)}).

3. Compute the parameter update Δp via equation (5).

4. Find the new values of p by incrementing the old parameters by the inverse of the update (Δp)⁻¹.

These steps are illustrated in FIG. 1. Ignoring the warp function, all the equations presented thus far are general and can apply equally well to 2D transformations, such as affine or homography, or 3D rotations. The focus is now narrowed, however, to the full 3D motion case with our choice of coordinate system and parameters. One may realize from inspection of the warps in (4) that the problem is defined in terms of several local coordinate systems as each reference view is defined to be at p={right arrow over (0)}₁, yielding a different coordinate system for each viewing site used. It is, however, a trivial matter to relate each of these coordinate systems to a global coordinate frame in order to perform parameter conversions between frames. Therefore, given a camera pose with respect to the global camera frame, we can define our parameter vector as p=[θ_(r)θ_(p)θ_(y)t_(x)t_(y)t_(x)]^(T)  (6) with three Euler rotation angles and three translations with respect to the nearest reference view.

With this parameterization, the warping W(u,v,Z;p) is governed by the matrix equation

$\begin{matrix} {\begin{bmatrix} \frac{u^{\prime}Z^{\prime}}{f} \\ \frac{v^{\prime}Z^{\prime}}{f} \\ Z^{\prime} \end{bmatrix} = {{R\begin{bmatrix} \frac{uZ}{f} \\ \frac{vZ}{f} \\ Z \end{bmatrix}} + \begin{bmatrix} t_{x} \\ t_{y} \\ t_{z} \end{bmatrix}}} & (7) \end{matrix}$ where R is the rotation matrix defined by the Euler angles (θ_(r), θ_(p), θ_(y)), u and v are the columns and rows of the image, f is the focal length, and Z is the entry on the depth map Z corresponding to the point (u,v). Here (u′,v′) gives the warped image coordinate of interest, and Z′ gives the warped depth corresponding to that point. Note that in the problem statement, we assume only that the virtual depth map Z_(v) is known. However, when using the inverse compositional algorithm, the warp is applied to the real image I_(r) and the real depth map Z_(r) must first be calculated by warping the virtual depth map Z_(v) to the current estimated pose of the real camera via p. This can also be performed using (7) and then interpolating the resulting warped depth map onto the coordinate system of the real image. In doing so, we are implicitly assuming that our estimate of p is relatively close to its actual value. If this is not the case, the parameter error can lead to large errors in the real depth map Z_(r), and therefore large errors in the image warping. Under such circumstances, the forward gradient descent method governed by (1-2) may be better suited to the problem.

In order to apply the warping function, at each pixel coordinate (u,v), with intensity I(u,v) and depth Z(u,v), a new coordinate (u′,v′) and depth Z′ (u′,v′) are found via (7). The original intensities and depths may then be mapped onto the new image array I(u′,v′). Some special care must be taken when performing the warping. Firstly, the image difference in (4) requires that the coordinate locations be the same for both images. The resultant array must therefore be interpolated onto the same coordinate grid as the original arrays. Because of this interpolation, and because the depth-based warping may result in occlusion, it can be difficult to choose the proper intensity corresponding to an output pixel. This can be mitigated somewhat if the intensities corresponding to larger depths are discarded when they overlap with those of smaller depths.

Finally, we turn to the calculation of the steepest-descent images

$\frac{\partial I}{\partial p}.$ There are several ways to generate the steepest descent images. They may be generated numerically by taking the difference of the reference images warped to small positive and negative values of each parameter. They may also be generated analytically by expanding the derivative via the chain rule:

$\begin{matrix} {\frac{\partial I}{\partial p} = {\begin{bmatrix} {\nabla_{u}I} & {\nabla_{v}I} \end{bmatrix}J_{p}}} & (8) \end{matrix}$ where ∇_(u)I and ∇_(u)I are the image gradients with respect to the rows and columns of the image, and J_(p) is the Jacobian of the warped coordinates with respect to p and thus can be found by differentiating u′ and v′ from (7) with respect to each of the warp parameters and evaluating it at a particular current value of p. In the case of the inverse compositional algorithm, the image derivatives are always evaluated at p={right arrow over (0)} and thus the Jacobian is constant for each reference viewing site:

$\begin{matrix} {J_{p} = \begin{bmatrix} {- v} & {- \frac{uv}{f}} & {{- f} - \frac{u^{2}}{f}} & \frac{f}{Z} & 0 & {- \frac{u}{Z}} \\ {- u} & {{- f} - \frac{v^{2}}{f}} & {- \frac{vu}{f}} & 0 & \frac{f}{Z} & {- \frac{v}{Z}} \end{bmatrix}} & (9) \end{matrix}$ We now have all the necessary information to calculate the iterated parameter update Δp. The final step is to invert this update, and compose it with the current estimate of p. The Euler angles can be found from the rotation matrix resulting from R′=RR_(d) ^(T)  (10) where R_(d) is the incremental rotation matrix associated with the rotation angles in Δp. The updated translations can be found from

$\begin{matrix} {\begin{pmatrix} \begin{matrix} t_{x}^{l} \\ t_{y}^{l} \end{matrix} \\ t_{z}^{l} \end{pmatrix} = {\begin{pmatrix} \begin{matrix} t_{x} \\ t_{y} \end{matrix} \\ t_{z} \end{pmatrix} - {{RR}_{d}^{T}\begin{pmatrix} \begin{matrix} {\Delta\; t_{x}} \\ {\Delta\; t_{y}} \end{matrix} \\ {\Delta\; t_{z}} \end{pmatrix}}}} & (11) \end{matrix}$ where Δt_(i) are the translation elements of the parameter update Δp.

In order to improve the performance when applying the above approach, several optimizing techniques are used. Operations performed on full-resolution images can be very computationally intensive. Therefore, a resolution pyramid is used wherein all images, depth maps, and gradients are down-sampled, preferably by a factor of 4, at each level. As we are not particularly concerned with computation time regarding the precomputed virtual views and gradients, and most video capture hardware provides real-time hardware subsampling for the real image, the computational cost of this subsampling is inconsequential and provides much quicker iteration times.

When implementing the above registration algorithm using pyramid decomposition, the algorithm is begun at the lowest resolution level of the pyramid (experimental results in this paper were performed starting at level 3; i.e., a factor of 64 reduction in resolution) and run until a reasonable stopping criteria was met before proceeding to a higher resolution level. This pyramidal approach not only speeds computation, it also serves to prevent convergence to local optima, because only the largest features are present in the highly subsampled images, while sharper features are introduced in higher resolution levels to aid in fine adjustment.

A second optimization that is used in practice is the use of the weighted normalized cross-correlation objective function

$\begin{matrix} {E = {- {\sum\limits_{u,v}{w_{u,v}\begin{matrix} \left\lbrack \frac{{I_{v}\left( {W\left( {u,v,{Z;{\Delta\; p}}} \right)} \right)} - \mu_{0}}{\sigma_{v}} \right\rbrack \\ \left\lbrack \frac{{I_{r}\left( {W\left( {u,v,{Z;p}} \right)} \right)} - \mu_{r}}{\sigma_{r}} \right\rbrack \end{matrix}}}}} & (12) \end{matrix}$ that allows images of different mean intensities and intensity ranges to be compared and also allows weighting of individual pixel values. It should be noted that in order to use this objective function under the inverse compositional algorithm, the weights must be constant and they must be chosen prior to the computation of the steepest descent images (i.e. they must be based off features of the virtual images). Taking advantage of the equivalence of normalized SSD and normalized cross-correlation, the update can be found as:

$\begin{matrix} {\Delta_{p} = {H^{- 1}❘_{p = 0}{\sum\limits_{u,v}{w_{u,v}{{\overset{\_}{\left\lbrack \frac{\partial I}{\partial p} \right\rbrack}}_{p = 0}^{T}\left\lbrack {{{\overset{\_}{I}}_{r}\left( {W\left( {u,v,{Z;p}} \right)} \right)} - {{\overset{\_}{I}}_{v}\left( {u,v} \right)}} \right\rbrack}}}}} & (13) \end{matrix}$ where the Hessian in this case is

$\begin{matrix} {{H = {\sum\limits_{u,v}{w_{u,v}{\overset{\_}{\left\lbrack \frac{\partial I}{\partial p} \right\rbrack}}^{T}\overset{\_}{\left\lbrack \frac{\partial I}{\partial p} \right\rbrack}}}},} & (14) \end{matrix}$

$\overset{\_}{\left\lbrack \frac{\partial I}{\partial p} \right\rbrack}$ is the set of mean-subtracted steepest descent images divided by the variance of the virtual image I_(v), and Ī_(i)i are the normalized images.

Examples

To validate the algorithm, sample results for the virtual-to-real and virtual-to-virtual registration cases are given. In both of the cases outlined below, the virtual environment is a CT chest scan of a human patient designated h005. The airway surfaces were automatically generated using the methods of Kiraly et al. [10]. Airway centerlines were extracted using the methods of Swift et al. and the virtual viewing sites were chosen along these airway centerlines at intervals varying between 0.3 mm and 1 mm, with the viewing direction chosen parallel to the airway centerline [11]. Virtual images and depth maps were generated by an OpenGL renderer assuming a spot light source at the camera focal point, a field of view of 78.2 degrees and a 264×264 image size to match the calibration parameters of the bronchoscope camera.

Virtual-to-Real Registration

The virtual-to-real registration was performed using pyramid decomposition starting from level 3 and ending at level 1. To account for the difference in intensity characteristics between the imaging sources, the weighted normalized cross-correlation (12) was used as the objective function, with weights w_(u,v) chosen as w _(u,v)=1−I _(v)(u,v)  (15) in order to emphasize dark areas, which tend to have more information in bronchoscopic video. The video frame, taken from a bronchoscopic procedure performed on h005 was first processed to remove the geometric barrel distortion from the lens to obtain the real image I_(r). In the virtual-to-real registration case, it is difficult to give ground truth locations as the location of the scope tip is in practice unknown. Without external localization, the quality of a good registration is somewhat qualitative in nature. FIG. 2 shows a sample of the registration results, with edges from the virtual image overlaid on the unregistered and registered real views. The results show that the alignment is qualitatively very satisfying. Virtual-to-Virtual Registration

In the virtual-to-virtual registration case, the “real” image is actually a rendering generated at a specified location in the airway, but with all depth information discarded. The algorithm uses pyramid decomposition starting from level 3 and ending at level 1, and the weighted SSD objective function was used where the weights w_(u,v) were chosen as in (15) as before.

FIG. 3 shows the “real” image I_(r) prior to registration, the virtual image I_(v) at the nearest reference site and the warped real image I_(r) (W(u,v,Z;p)) after registration is complete.

X Y position position Z position θγ Viewpoint (mm) (mm) (mm) θα (deg) θβ (deg) (deg) Initial 147.5 149.2 71.1 −20.2 −1.7 0 Reference 146.7 149.4 73.3 −7.3 5.1 −19.9 Site Registered 147.6 149.0 73.9 −20.9 1.2 −3.2 Ground 147.1 148.9 73.8 −20.24 −1.8 −0.4 Truth Error 0.6 0.1 0.5 −0.7 3.0 2.8

At least four different alternatives are available for registering the real and virtual sources in the case of bronchoscopy. These scenarios are outlined below:

-   -   1. Virtual-to-real registration: real-time or pre-recorded video         images I_(r) from a bronchoscope at an unknown location are         registered to a set of endoluminal CT renderings I_(v) and depth         maps Z_(v).     -   2. Virtual-to-virtual registration: an endoluminal rendering         I_(r) with unknown location and with or without an associated         depth map Z_(r) is registered to a set of endoluminal CT         renderings I_(v) and depth maps Z_(v).     -   3. Real-to-real registration: real-time video images I_(r) from         an endoscope at an unknown location is registered to a set of         previously recorded video images I_(v) with known or estimated         depth maps Z_(v).     -   4. Real-to-virtual registration: an endoluminal rendering I_(r)         with unknown position and with or without an associated depth         map Z_(r) is registered to a set of previously recorded video         images I_(v) with known or estimated depth maps Z_(v).

The application has far-reaching applications, particularly in the field of assisted endoscopy. The registration between a CT volume and real-time bronchoscopic video allows the fusion of information between the CT realm and the bronchoscope. This allows regions of interest (ROIs) defined only in the CT volume to be superimposed on the real video frame to assist the physician in navigating to these ROIs. Likewise, airway centerlines, branch labels and metric information such as distances to walls can be displayed on the video frame.

A natural extension of this concept is to other forms of endoscopy such as colonoscopy, where similar guidance information could be displayed on the registered colonoscopic image. Virtual-to-real registration can also be applied to pre-recorded endoscopic video, and opens the door to many post-processing options, such as mapping textural and color information available only in the endoscopic video onto the CT-derived surfaces to enable their visualization from viewpoints not available in the video alone.

An application of the real-to-real registration scenario that can be envisioned for this approach, is for aerial navigation. Satellite imagery, combined with topographic terrain information provides the known 3D environment, while real-time images from a mobile camera aboard an aircraft can be registered to this environment to give the aircraft's location and orientation without GPS or radar information. Similarly, this method also assists in ground-based robotic navigation within a known environment. Reference images and depth maps can be captured at known locations throughout the robot's working environment using a stereo camera setup, and a camera mounted on the robot can be registered to this set of images and depth maps.

REFERENCES

-   1. H. Minami, Y. Ando, F. Nomura, S. Sakai, and K. Shimokata,     “Interbronchoscopist variability in the diagnosis of lung cancer by     flexible bronchoscopy,” Chest 105(2), pp. 1658-1662, June 1994. -   2. I. Bricault, G. Ferretti, and P. Cinquin, “Registration of real     and CT-derived virtual bronchoscopic images to assist transbronchial     biopsy,” IEEE Transactions On Medical Imaging, Vol. 17, No. 5, pp.     703-714, October 1998. -   3. J. Helferty, Image-Guided Endoscopy and its Application To     Pulmonary Medicine. PhD thesis, The Pennsylvania State University,     2002. -   4. D. Deguchi, K. Mori, J. Hasegawa, J. Toriwaki, and H. Natori et     al., “Camera motion tracking of real bronchoscope using epipolar     geometry analysis and CT derived bronchoscopic images,” SPIE Medical     Imaging 2002: Physiol. Func. from Multidim. Images A Clough and C.     Chen (ed.), v. 4683, pp. 30-41, 2002. -   5. B. Lucas and T. Kanade, “An iterative image registration     technique with an application to stereo vision,” Proceedings of the     International Joint Conference on Artificial Intelligence, pp.     674-679, 1981. -   6. S. Baker and I. Matthews, “Equivalence and efficiency of image     alignment algorithms,” Proceedings of the IEEE Conference on     Computer Vision and Pattern Recognition 1, pp. 1090-1097, 2001. -   7. H.-Y. Shum and R. Szelisld, “Panoramic Image Mosaics.” Technical     Report MSR-TR-97-23, Microsoft Research. -   8. H.-Y. Shum and R. Szeliski, “Systems and Experiment Paper:     Construction of panoramic image mosaics with global and local     alignment,” International Journal of Computer Vision 36(2), pp     101-130 (2000). -   9. T. Okatani and K. Deguchi, “Shape reconstruction from an     endoscope image by shape from shading technique for a point light     source at the projection center,” Computer Vision and Image     Understanding 66, pp. 119-131, May 1997. -   10. A. P. Kiraly, E. A. Hoffman, G. McLennan, W. E. Higgins,     and J. M. Reinhardt, “3D human airway segmentation for virtual     bronchoscopy,” SPIE Medical Imaging 2002: Physiology and Funct. from     Multidim. Images, A. V. Clough and C. T. Chen, eds. 4683, pp. 16-29,     2002. -   11. R. Swift, A. Kiraly, A. Sherbondy, A. L. Austin, E. A.     Hoffman, G. McLennan, and W. E. Higgins, “Automatic axes-generation     for virtual bronchoscopic assessment of major airway obstructions,”     Computerized Medical Imaging and Graphics 26, pp. 103-118,     March-April 2002. 

1. A method of registering video frames of a body lumen received from an endoscope inserted into the body lumen to previously acquired images of the body lumen, the method comprising the steps of: computing a plurality of reference images of a body lumen, each reference image including a viewpoint with a depth map and image gradients; receiving video frames from the endoscope wherein said receiving step comprises receiving a live bronchoscopic video frame associated with an airway; and providing a processor to register each video frame received from the endoscope to at least one of the reference images, said processor being programmed to perform the steps of: a) warping the video frame to the viewpoint of one reference image of the plurality of reference images or warping one reference image of the plurality of reference images at a viewpoint to the video frame; b) automatically computing an image difference between (i) the warped video frame and the reference image, or (ii) the warped reference image and the video frame; c) updating a viewpoint of the video frame using an optimization technique; and d) repeating steps a) through c) for each video frame until the viewpoint of the video frame converges on a final viewpoint or a next video frame becomes available.
 2. The method of claim 1, wherein at least one reference image is updated before, during, or after registration.
 3. The method of claim 1, including the step of guessing an initial viewpoint of the video frame.
 4. The method of claim 1, wherein the final viewpoint gives an estimate of the relative rotation and translation between the video frame of the video feed and the reference image.
 5. The method of claim 1, further including the step of using a resolution pyramid wherein all images, depth maps, and gradients are down-sampled.
 6. The method of claim 1, further including the step of using a weighted normalized cross-correlation objective function.
 7. The method of claim 1, wherein the optimization technique is based on a Gauss-Newton parameter update.
 8. The method of claim 1 wherein the computed set of reference images of a body lumen comprises a 3-D model of a bronchial tree.
 9. The method of claim 1 wherein the body lumen is an airway.
 10. A method of registering video frames of a body lumen received from an endoscope inserted into the body lumen to previously acquired images of the body lumen, the method comprising the steps of: computing a plurality of reference images of a body lumen, each reference image including a viewpoint with a depth map and image gradients; receiving at least one video frame from the endoscope; and providing a processor to register each video frame received from the endoscope to at least one of the reference images using of the plurality, said processor being programmed to perform the steps of: a) warping the video frame to the viewpoint of one reference image of the plurality of reference images or warping one reference image of the plurality of reference images at a viewpoint to the video frame; b) automatically computing an image difference between (i) the warped video frame and the reference image, or (ii) the warped reference image and the video frame; c) updating a viewpoint of the video frame using an optimization technique; and d) repeating steps a) through c) for each video frame until the viewpoint of the video frame converges on a final viewpoint or a next video frame becomes available wherein the final viewpoint gives an estimate of relative rotation and translation between the video frame and the reference image.
 11. The method of claim 10, wherein at least one reference image is updated before, during, or after registration.
 12. The method of claim 10, including the step of guessing an initial viewpoint of the video frame.
 13. The method of claim 10, further including the step of using a resolution pyramid wherein all images, depth maps, and gradients are down-sampled.
 14. The method of claim 10, further including the step of using a weighted normalized cross-correlation objective function.
 15. The method of claim 10 wherein the optimization technique is based on a Gauss-Newton parameter update.
 16. The method of claim 10 wherein the step of receiving at least one video frame from an endoscope comprises receiving a live bronchoscopic video frame.
 17. The method of claim 16 wherein the computed set of reference images of the body lumen comprises a 3-D model of a bronchial tree. 